package hik.entity.manual;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
@XmlType(name = "ThermometryRule", propOrder = { "ruleId","enabled","name","type","point","region","line"})
public class MThermometryRule {
	public static final String TYPE_POINT = "point";
	public static final String TYPE_REGION = "region";
	public static final String TYPE_LINE = "line";
	

	@XmlElement(required = true)
	private int ruleId;
	
	@XmlElement(required = true)
	private boolean enabled;
	
	@XmlElement(required = true)
	private String name;
	
	@XmlElement(required = true)
	private String type;
	
	@XmlElement(name = "Point",required = false)
	private MPoint point;
	
	@XmlElement(name = "Region",required = false)
	private MRegion region;
	
	@XmlElement(name = "Line",required = false)
	private MLine line;
	
	
	public MThermometryRule() {
		
	}
	
	public MThermometryRule(int ruleId) {
		this.ruleId = ruleId;
		this.enabled = false;
		this.name = "";
		this.type = TYPE_POINT;
		this.point = new MPoint();
	}
	

	public int getRuleId() {
		return ruleId;
	}

	public void setRuleId(int ruleId) {
		this.ruleId = ruleId;
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public MPoint getPoint() {
		return point;
	}

	public void setPoint(MPoint point) {
		this.point = point;
	}

	public MRegion getRegion() {
		return region;
	}

	public void setRegion(MRegion region) {
		this.region = region;
	}

	public MLine getLine() {
		return line;
	}

	public void setLine(MLine line) {
		this.line = line;
	}
	
	
	
	
}
